package com.youlu.campus.entity;


import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "activity_channel_hour_pv_uv")
@CompoundIndexes({
        @CompoundIndex(name = "hour_pv_uv_comIdx",def = "{'activityId':-1,'channelCode':-1,'dayDate':-1,'hourOfDate':-1}",
                unique = true)
})
public class ActivityChannelHourPVUVStatistics extends EntityBase {

    @Indexed
    private String activityId;

    private String  channelName;


    private String channelCode;
    /**
     * 访问日期
     * 如20211102
     */
    @Indexed
    private Integer dayDate;
    /**
     * 小时
     */
    private String hourOfDate;

    private String date;

    /**
     * 星期几
     */
    private String dayOfWeek;

    /***
     * pv
     */
    private Long pvCount = 0L;
    /***
     * uv
     */
    private Long uvCount = 0L;

    /**
     * 报名人数
     */
    private Long signUpCount =0L;

}
